<template>
  <div>
    <div class="count">点击次数：{{count}} </div>
    <button @click="onclick">点击</button>
    <Foot />
  </div>
  
</template>

<script>
import Foot from "./foot.vue";
export default {
  components: {
    Foot
  },
  data() {
    return {
      count: 0
    }
  },
  methods: {
    onclick() {
      this.count = this.count+1;
    }
  }
}
</script>

<style scoped>
.count {
  color: brown;
}
</style>